package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.core.exception.SystemErrorType;
import com.springboot.cloud.demos.entity.form.ProfitRecordForm;
import com.springboot.cloud.demos.entity.form.ProfitRecordQueryForm;
import com.springboot.cloud.demos.entity.param.ProfitRecordQueryParam;
import com.springboot.cloud.demos.entity.po.ProfitRecord;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class ProfitRecordServiceFallback implements ProfitRecordService {


    @Override
    public Result list(ProfitRecordQueryForm profitRecordQueryParam) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result<ProfitRecord> save(ProfitRecordForm form) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result update(ProfitRecordForm form) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result get(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

}
